package entity

import (
	"xr-game-server/core/constants/db"
	"xr-game-server/core/migrate"
)

const (
	TbZone db.TbName = "zones"
)

// 列名
const (
	ZoneName   db.TbCol = "name"
	ZoneRemark db.TbCol = "remark"
)

type Zone struct {
	migrate.OneModel
	Name   string `gorm:"comment:名称" json:"name"`
	Remark string `gorm:"comment:备注" json:"remark"`
}

func initZone() {
	migrate.AutoMigrate(&Zone{})
}
